package cn.lonecloud.factory;

import cn.lonecloud.model.User;

/**
 * Created by lonecloud on 17/2/23.
 * Bean工厂类
 */
public class BeanFactory {
    public User getInstance(){
        return  new User("1d","我是利用实例的工厂方法");
    }
    public static User getStaticInstance(){
        return new User("ids","我是利用静态的工厂方法");
    }

}
